﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web.UI.WebControls;
using Dcms.BLL;
using Dcms.Common;
using Dcms.Model;
using AjaxPro;
using WebApp.AppCode;

public partial class Manage_Modle_Down_DownList : System.Web.UI.Page
{
    public String TerrFatherID;
    public CompetenceLib CL = new CompetenceLib();
    public String ROLESTR = "DOWN";
    public String Language = "";
    public string strModelKeyID = "";

    public string strPermissionID
    {
        get
        {
            return Request.QueryString["id"] + "";
        }
    }

    public string strTopCateID
    {
        get
        {
            return Request.QueryString["TopCateID"] + "";
        }
    }

    /// <summary>
    /// 页面加载
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {

        CL.IsLogin();
        if (Session["DCMSLANGUAGE"] != null)
        {
            Language = Session["DCMSLANGUAGE"].ToString();
        }
        Utility.RegisterTypeForAjax(typeof(Dcms.BLL.Dcms_CateBLL));
        Dcms_CateBLL cBll = new Dcms_CateBLL();

        int intModelKeyID = PublicFunction.GetModelKeyID(Convert.ToInt32(strPermissionID));
        strModelKeyID = intModelKeyID.ToString();
        TerrFatherID = cBll.GetTopCateIdByFlag(ROLESTR, intModelKeyID, Language).ToString();
    }
}
